package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Schema(name ="用户")
public class SysUser    extends Entity {
    @Schema(description = "用户id")
    private String id;
    @Schema(description = "用户名")
    private String name;
    @Schema(description = "昵称")
    private String nickName;
    @Schema(description = "电话")
    private String telphone;
    @Schema(description = "微信号")
    private String wxNo;
    @Schema(description = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;
    @Schema(description = "角色id")
    private String roleId;
    @Schema(description = "角色名称")
    private  String roleName;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "修改人")
    private String editBy;
    @Schema(description = "修改人名称")
    private  String editName;
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date editTime;
    @Schema(description = "是否冻结")
    private Boolean frozen;
    @Schema(description ="验证码")
    private String code;
    @Schema(description ="备注")
    private String  remark;
    @Schema(description ="排序")
    private Integer  sort;

}